package com.aoyama.juc.thread;

/**
 * @author ：qs
 * @date ：Created in 2022/7/23
 * @description：
 * @modified By：
 */
public class Test {

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(){
            public void run(){
                try {
                    System.out.println("t1------start ------");
                    Thread.sleep(5000);
                    System.out.println("t1------end 5000 ------");
                    this.notify();
                    Thread.sleep(5000);
                    System.out.println("t1------end 10000 ------");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        t1.start();
        t1.join();
        System.out.println("===------===");
        t1.join();
    }
}
